#!/bin/bash
a=$(($RANDOM%100+1))
n=1
while :
do
	read -p "please input your price: " u_price
	if [[ $u_price < $a ]]
	then
		echo  "价格低了"
	elif [[ $u_price > $a ]]
	then
		echo "价格高了"
	else
		break
	fi
	((n++))
done

if (($n==1))
then
	echo "you are rulai"
elif (( $n > 1 && $n <=5))
then
	echo "your are wukong"
elif (($n >= 10))
then
	echo "you are bajie"
fi
